<?php

namespace App\Console\Commands\SiteLocation;

use App\Console\Commands\Traits\ExcelCommandTrait;
use Illuminate\Console\Command;

class ImportCityShopFirstOrderPrice extends Command
{

    use ExcelCommandTrait;

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'siteLocation:import_city_shop_first_order_price';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '导入城市门店首批订货价格';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        $url = 'https://file.51kuafu.com/8b/9d/d98d477b6fcc0e8b34faf56c678fd02abebc2b274bd26ecf0cf25cc6a33f.csv';

        $this->setInputExcel(false);
        $this->excelImport(\App\Service\SiteLocation\Import\CityShopFirstOrderPrice::class, $url);
    }
}
